package com.smartleanx.module.hrm.dal.dataobject.employee;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import com.smartleanx.framework.tenant.core.db.TenantBaseDO;

/**
 * 离职信息 DO
 *
 * @author tengcj
 */
@TableName("hrm_employee_separation_record")
@KeySequence("hrm_employee_separation_record_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EmployeeSeparationRecordDO extends TenantBaseDO {

    /**
     * 主键id
     */
    @TableId
    private Long id;
    /**
     * 员工id
     */
    private Long employeeId;
    /**
     * 计划离职日期/离职日期
     */
    private LocalDateTime separationTime;
    /**
     * 申请离职日期
     */
    private LocalDateTime applySeparationTime;
    /**
     * 薪资结算日期
     */
    private LocalDateTime salarySettlementTime;
    /**
     * 离职类型
     *
     * 枚举 {@link com.smartleanx.module.hrm.eums.employee.SeparationTypeEnum}
     */
    private Integer separationType;
    /**
     * 离职原因
     *
     * 枚举 {@link com.smartleanx.module.hrm.eums.employee.SeparationReasonEnum}
     */
    private Integer separationReason;
    /**
     * 备注
     */
    private String remarks;
    /**
     * 离职前状态
     */
    private Integer oldStatus;

    /**
     * 审核流程实例的编号
     */
    private String approveProcessInstanceId;
    /**
     * 审核结果
     */
    private Integer approveResult;
    /**
     * 原员工状态
     * <p>
     * 枚举 {@link com.smartleanx.module.hrm.eums.employee.EmployeeStatusEnum}
     */
    private Integer oldEmployeeState;
    /**
     * 记录提交类型
     * <p>
     * 枚举 {@link com.smartleanx.module.hrm.eums.employee.EmployeeRecordTypeEnum}
     */
    private Integer createType;

}
